package org.ziwei.paipan.biao;

import java.util.HashMap;
import java.util.Map;

import org.ziwei.paipan.var.DiZhi;
import org.ziwei.paipan.var.MiaoXian;
import org.ziwei.paipan.var.StarCode;

/**
 * 庙陷表
 * 不同星曜飞落不同宫，产生的效果也不同
 * 入庙形容星曜处于舒坦的位置，供养在庙堂之上，本来吉祥的星曜在庙堂之上，更能赐福消灾，即便凶星入庙，也不会惹是生非
 * 陷落形容星曜处于困境，吉星陷落则悲天怨人，满腹牢骚，若是凶星则铤而走险，好勇斗狠，灾祸连连
 * 紫微宜午未，独忌入罗网
 * 天机喜桃花，丑未为墓堂
 * 太阳喜画位，戌亥子失光
 * 武曲宜居墓，巳宫则不良
 * 天同巳亥吉，午陷丑未伤
 * 廉贞喜申寅，桃花有嫌妨
 * 天府无陷地，卯巳申平常
 * 月喜亥子丑，卯辰巳无光
 * 贪狼宜入墓，申寅落陷方
 * 巨门喜金木，辰戌为凶堂
 * 天相多庙地，唯嫌卯酉房
 * 天梁亦多庙，巳申亥陷伤
 * 七杀嫌巳亥，余宫皆吉祥
 * 破军忌卯酉，最喜子午方
 * 昌曲喜金局，陷于火炎乡
 * 火铃自宜火，水局见炎殃
 * 擎羊喜四墓，四仲气不扬
 * 陀罗宜四墓，四孟则无良
 * 化禄忌四仲，喜居寅申堂
 * 化权宜丑戌，唯忌四煞乡
 * 化科喜申丑，劫空大不祥
 * 化忌喜子丑，火局添炎伤
 * 刑姚宜水木，丑未为墓堂
 * 鸾喜丑戌亥，又喜坐东方
 * 诸星知喜忌，断算自精祥
 * 
 */
public class MiaoXianBiao {
	
	private static Map<StarCode, MiaoXian[]> miaoXianMap = new HashMap<StarCode, MiaoXian[]>();
	
	static{
		//十四正星庙陷表
		miaoXianMap.put(StarCode.ZIWEI, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.IDLE,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANJI, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.TAIYANG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.IDLE,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.WUQU, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANTONG, new MiaoXian[]{MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.LIANZHEN, new MiaoXian[]{MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.TIANFU, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TAIYIN, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.TANLANG, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.DI,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.JUMEN, new MiaoXian[]{MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANXIANG, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.WANG,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANLIANG, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.DI,MiaoXian.WANG,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.QISHA, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.POJUN, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING});
	
		//天干星庙陷表
		miaoXianMap.put(StarCode.TIANKUI, new MiaoXian[]{MiaoXian.WANG,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANYUE, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL});
		miaoXianMap.put(StarCode.LUCUN, new MiaoXian[]{MiaoXian.WANG,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.QINGYANG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.NULL});
		miaoXianMap.put(StarCode.TUOLUO, new MiaoXian[]{MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.TIANGUAN, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANFU1, new MiaoXian[]{MiaoXian.PING,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.PING,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.PING,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.HUALU, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.DI,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.HUAQUAN, new MiaoXian[]{MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG});
		miaoXianMap.put(StarCode.HUAKE, new MiaoXian[]{MiaoXian.WANG,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.WANG});
		miaoXianMap.put(StarCode.HUAJI, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.ZHENGJIEKONG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL});
		miaoXianMap.put(StarCode.BANGJIEKONG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL});
		
		//地支星庙陷表
		miaoXianMap.put(StarCode.HONGLUAN, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.TIANXI, new MiaoXian[]{MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG});
		miaoXianMap.put(StarCode.LONGCHI, new MiaoXian[]{MiaoXian.WANG,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG});
		miaoXianMap.put(StarCode.FENGGE, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANDE, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.JIESHEN, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.TIANKU, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.DI,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.PING,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANXU, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.PING});
		miaoXianMap.put(StarCode.GUCHEN, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.GUASU, new MiaoXian[]{MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.IDLE,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL});
		miaoXianMap.put(StarCode.HUAGAI, new MiaoXian[]{MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL});
		miaoXianMap.put(StarCode.JIESHA, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.XIANCHI, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL});
		miaoXianMap.put(StarCode.TIANMA, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.WANG,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANKONG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.PING});
		miaoXianMap.put(StarCode.DAHAO, new MiaoXian[]{MiaoXian.WANG,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.PING,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.POSUI, new MiaoXian[]{MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL});
		miaoXianMap.put(StarCode.HUOXING, new MiaoXian[]{MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.IDLE,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.LINGXING, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO});
		
		//生月星庙陷表
		miaoXianMap.put(StarCode.ZUOFU, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.IDLE});
		miaoXianMap.put(StarCode.YOUBI, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANXING, new MiaoXian[]{MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.TIANYAO, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.TIANWU, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING});
		miaoXianMap.put(StarCode.YINSHA, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.IDLE,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.MIAO,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.NULL,MiaoXian.PING,MiaoXian.NULL});
		miaoXianMap.put(StarCode.TIANYUE1, new MiaoXian[]{MiaoXian.NULL,MiaoXian.NULL,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.NULL,MiaoXian.NULL,MiaoXian.XIAN,MiaoXian.MIAO});
		
		//生时星庙陷表
		miaoXianMap.put(StarCode.WENCHANG, new MiaoXian[]{MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG});
		miaoXianMap.put(StarCode.WENQU, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.WANG});
		miaoXianMap.put(StarCode.DIKONG, new MiaoXian[]{MiaoXian.PING,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.DIJIE, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.IDLE,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TAIFU, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.PING,MiaoXian.WANG,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.XIAN});
		miaoXianMap.put(StarCode.FENGGAO, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.IDLE,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.WANG,MiaoXian.XIAN});
		
		//杂星
		miaoXianMap.put(StarCode.ZHENGXUNKONG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING});
		miaoXianMap.put(StarCode.BANGXUNKONG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.XIAN,MiaoXian.PING});
		miaoXianMap.put(StarCode.SANTAI, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING});
		miaoXianMap.put(StarCode.BAZUO, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.WANG,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.ENGUANG, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.IDLE});
		miaoXianMap.put(StarCode.TIANGUI, new MiaoXian[]{MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.WANG,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING});
		miaoXianMap.put(StarCode.TIANSHANG, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.PING,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANSHI, new MiaoXian[]{MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.PING,MiaoXian.PING,MiaoXian.PING,MiaoXian.PING,MiaoXian.XIAN,MiaoXian.XIAN,MiaoXian.WANG});
		miaoXianMap.put(StarCode.TIANCAI, new MiaoXian[]{MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO});
		miaoXianMap.put(StarCode.TIANSHOU, new MiaoXian[]{MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.XIAN,MiaoXian.MIAO,MiaoXian.PING,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG,MiaoXian.PING,MiaoXian.MIAO,MiaoXian.WANG});
		
	}
	
	public static MiaoXian dingMiaoXian(StarCode starCode, DiZhi gongZhi){
		MiaoXian[] mx = miaoXianMap.get(starCode);
		if(mx == null){
			return null;
		}
		return mx[gongZhi.ordinal()];
	}
}
